def prCondition(BRANCH_NAME,buildRecordId){
    //echo "BRANCH_NAME.startsWith('PR-') :  ${BRANCH_NAME.startsWith('PR-')}"
    //echo "BRANCH_NAME.startsWith('PR-') && buildRecordId: ${BRANCH_NAME.startsWith('PR-') && buildRecordId}"
    if (BRANCH_NAME.startsWith('PR-') && buildRecordId)
        return true
    return false
}

def masterCondition(BRANCH_NAME,buildRecordId) {
    //echo "!BRANCH_NAME.startsWith('master-') :  ${BRANCH_NAME.startsWith('master-')}"
    //echo "BRANCH_NAME.startsWith('master-') && buildRecordId: ${BRANCH_NAME.startsWith('master-') && buildRecordId}"
    if (BRANCH_NAME.startsWith('master-') && buildRecordId)
        return true
    return false
}